Optimal. Leaf size=42 \[ -\frac{A \log (a+b x)}{a^2}+\frac{A \log (x)}{a^2}+\frac{A b-a B}{a b (a+b x)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.069173, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.074 \[ -\frac{A \log (a+b x)}{a^2}+\frac{A \log (x)}{a^2}+\frac{A b-a B}{a b (a+b x)} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/(x*(a^2 + 2*a*b*x + b^2*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 24.3897, size = 34, normalized size = 0.81 \[ \frac{A \log{\left (x \right )}}{a^{2}} - \frac{A \log{\left (a + b x \right )}}{a^{2}} + \frac{A b - B a}{a b \left (a + b x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/x/(b**2*x**2+2*a*b*x+a**2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0446626, size = 38, normalized size = 0.9 \[ \frac{\frac{a (A b-a B)}{b (a+b x)}-A \log (a+b x)+A \log (x)}{a^2} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/(x*(a^2 + 2*a*b*x + b^2*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.011, size = 46, normalized size = 1.1 \[{\frac{A\ln \left ( x \right ) }{{a}^{2}}}+{\frac{A}{a \left ( bx+a \right ) }}-{\frac{B}{ \left ( bx+a \right ) b}}-{\frac{A\ln \left ( bx+a \right ) }{{a}^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/x/(b^2*x^2+2*a*b*x+a^2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.684455, size = 59, normalized size = 1.4 \[ -\frac{B a - A b}{a b^{2} x + a^{2} b} - \frac{A \log \left (b x + a\right )}{a^{2}} + \frac{A \log \left (x\right )}{a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.286285, size = 84, normalized size = 2. \[ -\frac{B a^{2} - A a b +{\left (A b^{2} x + A a b\right )} \log \left (b x + a\right ) -{\left (A b^{2} x + A a b\right )} \log \left (x\right )}{a^{2} b^{2} x + a^{3} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.85834, size = 32, normalized size = 0.76 \[ \frac{A \left (\log{\left (x \right )} - \log{\left (\frac{a}{b} + x \right )}\right )}{a^{2}} - \frac{- A b + B a}{a^{2} b + a b^{2} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/x/(b**2*x**2+2*a*b*x+a**2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.268958, size = 65, normalized size = 1.55 \[ -\frac{A{\rm ln}\left ({\left | b x + a \right |}\right )}{a^{2}} + \frac{A{\rm ln}\left ({\left | x \right |}\right )}{a^{2}} - \frac{B a^{2} - A a b}{{\left (b x + a\right )} a^{2} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*x),x, algorithm="giac")
[Out]